package com.hhp.hhptt.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hhp.hhptt.entity.User;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Component;

import java.util.List;

//@Mapper
public interface UserMapper extends BaseMapper<User>{

//    @Select("select * from user where userName like concat('%',#{userName},'%')   limit #{pageNum},#{pageSize}")
//     List<User> selectPage(Integer pageNum, int pageSize,String userName);
//
//    @Select("select count(*) from user where userName like concat('%',#{userName},'%')")
//    Integer selectTotal(String userName);
//
//    @Select("select * from user;")
//    List<User> findall();
//
//    @Insert("insert into user (username,password,nickname,email,phone,address ) values(#{username},#{password},#{nickname},#{email},#{phone},#{address})")
//    int insert(User user);
//
//    Integer update(User user);
//
//    @Delete("delete from user where id=#{id}")
//    Integer delete(@Param("id") Integer id);



}
